package com.example.childrendapp.gamefunny;

import com.example.childrendapp.R;

import android.app.Activity;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;


public class  AppStartGame extends Activity {
    /** Called when the activity is first created. */
	private MyGameLocalService mBoundService;
	private MyGameView mDrawView;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //mediaPlayer.start();
    	/*bindService(new Intent(DragDrop.this, LocalService.class),
				mConnection, Context.BIND_AUTO_CREATE);
        mBoundService.startNhacNen();*/
        // draw the view
       // setContentView(new DrawView(this));
        mDrawView =(MyGameView) findViewById(R.id.myGameView1);
        setContentView(R.layout.layout_app_gamefunny);
        
    }
	private ServiceConnection mConnection = new ServiceConnection() {


		public void onServiceConnected(ComponentName className, IBinder service) {
			mBoundService = ((MyGameLocalService.LocalBinder) service).getService();
		}

		public void onServiceDisconnected(ComponentName className) {
			mBoundService = null;
		}
	};
	
    
    
}